/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.assign2.ispcomplies.Impl;

import za.ac.cput.assign2.ispcomplies.Sender;

/**
 *
 * @author Sisanda
 */
public class ISender implements Sender 
{
   String name;
   String emailAddress;
   String subj;
   String body;
   
   public void setName(String name) {
       this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setEmailAddress(String email) {
        emailAddress = email;
    }

    public String getEmailAddress() {
        return emailAddress;
    }

    public void SetSubject(String subj) {
        this.subj = subj;
    }

    public String GetSubject() {
        return subj;
    }

    public void SetBody(String body) {
        this.body = body;
    }

    public String GetBody() {
        return body;
    }

    public String SendMessage()
    {
        return "incoming message#Name=\""+name+"\"#To=\""+emailAddress+"\"#Subject=\""+subj+"\"#Body=\""+body+"\"";
    }

    @Override
    public void setAddress(String addre) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public String getAddress() {
        throw new UnsupportedOperationException("Not supported yet.");
    }
    
}
